package me.spring.cloud.common.components.oauth2.userdetails.exception.code;

import me.spring.cloud.common.components.util.enums.CodedEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: 登录认证异常code
 * @author: luffy
 * @create: 2018-09-07 17:12
 **/
@Getter
@AllArgsConstructor
public enum AuthoritiesCode implements CodedEnum<String> {

  NO_AUTHORITY("79999", "您无权访问！"),
  TOKEN_INVALID("79998", "token无效,请重新登录！"),
  Unauthorized("79997", "请重新登录！"),
  INVALID_USERNAME_OR_PASSWORD("79996", "用户名或密码错误！"),
  JWT_TOKEN_EXPIRED("79995", "登录已失效，请重新登录！"),
  AUTHENTICATION_FAILED("79994", "登录失败，请稍后重试！"),
  INVALID_TOKEN("79993", "Token验证失败！"),
  GET_USER_INFO_ERROR("79993", "获取用户信息失败！"),
  GET_USER_RESOURCE_ERROR("79993", "获取用户资源角色失败！"),






  CLIENT_VALID_TOKEN_ERROR("79993", "token无效，请重新登录！"),

  ;


  private String code;
  private String desc;
}
